import requests
import re

def get_ico(research):
    url=f"https://icon.macw.com/search/{research}.html"
    headers = {
        "cookie":"PHPSESSID=2mlsi21tq7o7ih2i84a386fdnq",
        "referer":"https://icon.macw.com/pack/1352.html",
        "user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36"
    }
    response=requests.get(url, headers=headers).text
    url_list=[]
    url_list_=re.findall('''<div class="img"><img src="(.*?)" alt="(.*?)"></div>''',response,re.S)
    for url in url_list_:
        url_list.append(url[0])
    print(url_list)

get_ico("爱心")